package cc.aiee.core.kit;

import cc.aiee.core.bean.PayBaseConfig;

public class KitSandbox {

	/**
	 * 是否开启沙盒模式
	 * @param openSandBox
	 * @param config
	 * @return openSandBox == null ? config.isOpenSandbox() : openSandBox
	 * @author YangLong <br>
	 * 2020-09-30 15:13:04
	 */
	public static boolean sandbox(Boolean openSandBox, PayBaseConfig config) {
		return openSandBox == null ? config.isSandbox() : openSandBox;
	}
}
